//
//  MyTableViewCell.m
//  UI14_豆瓣完整版
//
//  Created by dllo on 15/12/31.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "MyTableViewCell.h"

@implementation MyTableViewCell

- (void)dealloc {
    [_imageView1 release];
    [_imageView2 release];
    [_imageView3 release];
    [_imageView4 release];
    [_imageView5 release];
    [_imageView6 release];
    [_titleLabel release];
    [_dateLabel release];
    [_addressLabel release];
    [_typeLabel release];
    [_typeLABEL release];
    [_interLabel release];
    [_interNumLabel release];
    [_joinLabel release];
    [_joinNumLabel release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createCell];
    }
    return self;
}

- (void)createCell {
    
    self.imageView1 = [[UIImageView alloc] init];
    [self.contentView addSubview:_imageView1];
    [_imageView1 release];
    
    self.imageView2 = [[UIImageView alloc] init];
    [_imageView1 addSubview:_imageView2];
    [_imageView2 release];
    
    self.imageView3 = [[UIImageView alloc] init];
    [_imageView1 addSubview:_imageView3];
    [_imageView3 release];
    
    self.imageView4 = [[UIImageView alloc] init];
    [_imageView1 addSubview:_imageView4];
    [_imageView4 release];
    
    self.imageView5 = [[UIImageView alloc] init];
    [_imageView1 addSubview:_imageView5];
    [_imageView5 release];
    
    self.imageView6 = [[UIImageView alloc] init];
    [_imageView1 addSubview:_imageView6];
    [_imageView6 release];
    
    
    self.titleLabel = [[UILabel alloc] init];
    [_imageView1 addSubview:_titleLabel];
    [_titleLabel release];
    
    self.dateLabel = [[UILabel alloc] init];
    [_imageView1 addSubview:_dateLabel];
    [_dateLabel release];
    
    self.addressLabel = [[UILabel alloc] init];
    [_imageView1 addSubview:_addressLabel];
    [_addressLabel release];
    
    self.typeLabel = [[UILabel alloc] init];
    [_imageView1 addSubview:_typeLabel];
    [_typeLabel release];
    
    self.typeLABEL = [[UILabel alloc] init];
    [_imageView1 addSubview:_typeLABEL];
    [_typeLABEL release];
    
    self.interLabel = [[UILabel alloc] init];
    [_imageView1 addSubview:_interLabel];
    [_interLabel release];
    
    self.interNumLabel = [[UILabel alloc] init];
    [_imageView1 addSubview:_interNumLabel];
    [_interNumLabel release];
    
    self.joinLabel = [[UILabel alloc] init];
    [_imageView1 addSubview:_joinLabel];
    [_joinLabel release];
    
    self.joinNumLabel = [[UILabel alloc] init];
    [_imageView1 addSubview:_joinNumLabel];
    [_joinNumLabel release];
    
}

- (void)layoutSubviews {
    
    [super layoutSubviews];
    
    _imageView1.frame = CGRectMake(10, 10, 355, 180);
    _imageView1.image = [UIImage imageNamed:@"bg_eventlistcell.png"];
    
    _imageView2.frame = CGRectMake(5, 30, 345, 140);
    _imageView2.image = [UIImage imageNamed:@"bg_share_large.png"];
    
    _imageView3.frame = CGRectMake(260, 35, 90, 130);
    _imageView3.backgroundColor = [UIColor clearColor];
    
    _imageView4.frame = CGRectMake(5, 35, 32, 32);
    _imageView4.image = [UIImage imageNamed:@"icon_date_blue@2x.png"];
    
    _imageView5.frame = CGRectMake(5, 65, 32, 32);
    _imageView5.image = [UIImage imageNamed:@"icon_spot_blue@2x"];
    
    _imageView6.frame = CGRectMake(5, 95, 32, 32);
    _imageView6.image = [UIImage imageNamed:@"icon_catalog_blue@2x"];
    
    _titleLabel.frame = CGRectMake(5, 0, 300, 30);
    _titleLabel.backgroundColor = [UIColor clearColor];
    
    _dateLabel.frame = CGRectMake(40, 35, 200, 30);
    _dateLabel.backgroundColor = [UIColor clearColor];
    
    _addressLabel.frame = CGRectMake(40, 65, 200, 30);
    _addressLabel.backgroundColor = [UIColor clearColor];
    
    _typeLabel.frame = CGRectMake(90, 95, 100, 30);
    _typeLabel.backgroundColor = [UIColor clearColor];

    
    _typeLABEL.frame = CGRectMake(40, 85, 50, 50);
    _typeLABEL.text = @"类型:";
    
    
    _interLabel.frame = CGRectMake(5, 130, 60, 30);
    _interLabel.backgroundColor = [UIColor clearColor];
    _interLabel.text = @"感兴趣:";
    
    _interNumLabel.frame = CGRectMake(65, 130, 60, 30);
    _interNumLabel.backgroundColor = [UIColor clearColor];
    [_interNumLabel setTextColor:[UIColor redColor]];
    
    _joinLabel.frame = CGRectMake(125, 130, 60, 30);
    _joinLabel.backgroundColor = [UIColor clearColor];
    _joinLabel.text = @"参加:";
    
    _joinNumLabel.frame = CGRectMake(170, 130, 60, 30);
    _joinNumLabel.backgroundColor = [UIColor clearColor];
    [_joinNumLabel setTextColor:[UIColor redColor]];
    
}








- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
